module.exports = {
  filenameHashing: true,
  lintOnSave: false,
  transpileDependencies: [],

  // cors https://jakearchibald.com/2017/es-modules-in-browsers/#always-cors
  // corsUseCredentials: false,
  //
  // https://cli.vuejs.org/guide/webpack.html#simple-configuration
  configureWebpack: config => {},

  //
  // https://github.com/mozilla-neutrino/webpack-chain
  chainWebpack: config => {
    // config.module
    //   .rule("eslint")
    //   .exclude.add("/Users/maybexia/Downloads/FE/community_built-in/src/lib")
    //   .end();
  },

  // css: {
  //   modules: false,
  //   sourceMap: true,
  //   loaderOptions: {
  //     css: {},
  //     postcss: {}
  //   }
  // },

  // All options for webpack-dev-server are supported
  // https://webpack.js.org/configuration/dev-server/
  devServer: {
    open: true,

    host: "localhost",

    port: 8080,

    https: false,

    hotOnly: false,

    proxy: {
      "/api": {
        target: "http://localhost:6001/api",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api": ""
        }
      }
      // "/Images": {
      //   target: "http://localhost:6001/Images",
      //   ws: true,
      //   changeOrigin: true,
      //   pathRewrite: {
      //     "^/Images": ""
      //   }
      // }
    },

    before: app => {}
  },

  // https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa
  pwa: {},

  pluginOptions: {}
};
